package com.bignerdranch.android.ecar.Dao;

import android.content.ContentValues;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;

import com.bignerdranch.android.ecar.Utils.EcarDataHelper;

/**
 * Created by Administrator on 2016/8/10.
 */
public class EcarDao {
    private SQLiteDatabase mDatabase;
    private EcarDataHelper mDataHelper;

    public EcarDao(Context context) {
        mDataHelper = new EcarDataHelper(context);
        mDatabase = mDataHelper.getReadableDatabase();

    }

    private void insert(String id ,String name){
        ContentValues values = new ContentValues();
        values.put("id",id);
        values.put("name",name);

        mDatabase.insert("user",null,values);
    }
}
